/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.scene.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 安全组管理Entity
 * @author dh
 * @version 2017-03-28
 */
public class SceneSecurityGroup extends DataEntity<SceneSecurityGroup> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 安全组名称
	private String tenantId;		// 租户id
	private String projectId;  // 项目id

	public SceneSecurityGroup() {
		super();
	}

	public SceneSecurityGroup(String id){
		super(id);
	}

	@Length(min=1, max=64, message="安全组名称长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=64, message="租户id长度必须介于 0 和 64 之间")
	public String getTenantId() {
		return tenantId;
	}

	public void setTenantId(String tenantId) {
		this.tenantId = tenantId;
	}

	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

}